<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>测试简繁转换</title>
    <script type="text/javascript" language="javascript" src="../assets/js/transform.js"></script>
    <script type="text/javascript" language="javascript" src="../assets/js/jquery-3.4.1.js"></script>
    <script type="text/javascript" language="javascript" src="../assets/js/common.js"></script>
</head>
<body>
<h1>测试简繁转换</h1>
<p> 简繁转换是否成功了呢？看看就知道了</p>
<p> 簡繁轉換是否成功了呢？看看就知道了</p>
<div id="indextophtml"></div>
<input id="fan" type="button" value="简/繁"/>

<script type="text/javascript" language="javascript">
    $(function () {
        store.sets("st", -1);
        transformLang();
        $(document).on("click", "#fan", function () {
            var st = parseInt(store.gets("st")) * -1;
            store.sets("st", st);
            transformLang();
        });
        $("#indextophtml").load('./upload.html');
    });
</script>
</body>
</html>
